import request from '@/utils/request';
import bodyParse from '@/utils/bodyParse';


//角色列表
export async function customer(params) {
  return request('/cujin/customer' + bodyParse(params));
}

//创建角色
export async function addcustomer(params) {
  return request('/cujin/customer', {
    method: 'POST',
    data: params,
  });
}

//更新角色
export async function editcustomer(params) {
  return request('/cujin/customer/' + params.id, {
    method: 'PUT',
    data: params,
  });
}

//删除角色
export async function deletecustomer(params) {
  return request('/cujin/customer/' + params, {
    method: 'DELETE',
  });
}
